﻿using UnityEngine;
using System.Collections;

public static class SQComponent 
{

  public static void ProgressBar(this GameObject target, float percent) 
    {
        UISlider slider=target.gameObject.GetComponent<UISlider>();
        if (slider == null)
        {
            Debug.Log("Could not fine the UISlider Component!");
            return;
        }
        slider.value = percent / 100;
    }



}
